package com.yaorange.web.webconfig;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/api/common/static/**")
                .addResourceLocations("file:D:/实习工程实践/资料/基础代码/nongjt (2)/nongjt-serve/uploads/images/");
    }
}
